home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / SLAX 6.0.8 / slax-6.0.8.iso / slax / base / 006-devel.lzm / usr / include / kspell2 / configwidget.h < prev    next >
Encoding:
C/C++ Source or Header  |  2007-01-15  |  1.6 KB  |  58 lines

  1. /*
  2.  * configwidget.h
  3.  *
  4.  * Copyright (C)  2004  Zack Rusin <zack@kde.org>
  5.  *
  6.  * This library is free software; you can redistribute it and/or
  7.  * modify it under the terms of the GNU Lesser General Public
  8.  * License as published by the Free Software Foundation; either
  9.  * version 2.1 of the License, or (at your option) any later version.
  10.  *
  11.  * This library is distributed in the hope that it will be useful,
  12.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  14.  * Lesser General Public License for more details.
  15.  *
  16.  * You should have received a copy of the GNU Lesser General Public
  17.  * License along with this library; if not, write to the Free Software
  18.  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  19.  * 02110-1301  USA
  20.  */
  21. #ifndef KSPELL_CONFIGWIDGET_H
  22. #define KSPELL_CONFIGWIDGET_H
  23.  
  24. #include <qwidget.h>
  25. #include <kdelibs_export.h>
  26.  
  27. namespace KSpell2
  28. {
  29.     class Broker;
  30.     class KDE_EXPORT ConfigWidget : public QWidget
  31.     {
  32.         Q_OBJECT
  33.     public:
  34.         ConfigWidget( Broker *broker, QWidget *parent, const char *name =0 );
  35.         ~ConfigWidget();
  36.  
  37.         bool backgroundCheckingButtonShown() const;
  38.  
  39.     public slots:
  40.         void save();
  41.         void setBackgroundCheckingButtonShown( bool );
  42.         void slotDefault();
  43.     protected slots:
  44.         void slotChanged();
  45.  
  46.     private:
  47.         void init( Broker *broker );
  48.         void setFromGUI();
  49.         void setCorrectLanguage( const QStringList& langs );
  50.  
  51.     private:
  52.         class Private;
  53.         Private *d;
  54.     };
  55. }
  56.  
  57. #endif
  58.